package com.flyco.modules.system.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.flyco.modules.system.model.StoreInfoModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 人员经销商关系表
 * @Author: flyco
 * @Date:   2024-07-30
 * @Version: V1.0
 */
@Data
@TableName("sys_user_store")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sys_user_store对象", description="人员经销商关系表")
public class SysUserStore {

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
	private String id;

	/**
	 * 商家id
	 */
	private Long partnerId;

	/**经销商编码*/
	@Excel(name = "经销商编码", width = 15)
    @ApiModelProperty(value = "经销商编码")
	private String storeId;
	/**storeName*/
	@Excel(name = "storeName", width = 15)
    @ApiModelProperty(value = "storeName")
	private String storeName;
	/**人员工号*/
	@Excel(name = "人员工号", width = 15)
    @ApiModelProperty(value = "人员工号")
	private String salemanId;
	/**salemanName*/
	@Excel(name = "salemanName", width = 15)
    @ApiModelProperty(value = "salemanName")
	private String salemanName;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**createTime*/
	@Excel(name = "createTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "createTime")
	private Date createTime;
	/**updateTime*/
	@Excel(name = "updateTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "updateTime")
	private Date updateTime;

	/**
	 * 通知经销商列表
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "经销商列表")
	private List<StoreInfoModel> storeInfoList;
}
